package com.shop.mapper;


import com.shop.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    @Select("select * from article")
    List<Article> selectAllArticle();

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
}